package com.bs.blogspace.service;

import com.bs.blogspace.model.Result;
import com.bs.blogspace.pojo.User;

public interface UserService {
    /**
     * 注册用户
     * @param userName
     * @param password
     * @param phone
     * @return
     */
    Result<User> register(String userName,String password,String phone);

    /**
     * 登录逻辑，成功返回User对象
     * @param phone
     * @param password
     * @return
     */
    Result<User> login(String phone, String password);

    User getByPhone(String phone);
    /*更新用户信息*/
    Result<User> update(User user);

    /*查看指定用户信息*/
    Result<User> queryGetByPhone(String phone);

}

